package com.sheng.service;

import com.sheng.entity.Books;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookService {

    //增加一本书
    int addBook(Books books);
    //删除一本书
    int deleteById(int id);
    //更新一本书
    int updateBook(Books books);
    //查询一本书
    Books queryBookById(int id);
    //查询全部书
    List<Books> queryAllBook();
    //通过书名查询书
    Books queryBookByName(String name);


}
